<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  
  <itext>
    <paragraph leading="18.0" font="unknown" align="Default">
      <xsl:for-each select="salaries/salary">
        <table columns="7" width="80%" align="Center" cellpadding="5.0" cellspacing="5.0">
          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                姓名
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                基本工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                岗位工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                特殊津贴
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                工龄工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                职务工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                加班费
              </paragraph>
            </cell>
          </row>
          
          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <xsl:value-of select="name"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                基本工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                岗位工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                特殊津贴
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                工龄工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                职务工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <xsl:value-of select="overTime"/>
              </paragraph>
            </cell>
          </row>


          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                姓名
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                基本工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                岗位工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                特殊津贴
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                工龄工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                职务工资
              </paragraph>
            </cell>
          </row>
          
          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <xsl:value-of select="total"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <xsl:value-of select="tex"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                社保
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <xsl:value-of select="house"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                其他
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <xsl:value-of select="total"/>
              </paragraph>
            </cell>            
          </row>                   
        </table>
        
      </xsl:for-each>
    </paragraph>
  </itext>
</xsl:template>
</xsl:stylesheet>